#pragma once
#include "Headers.h"

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Runtime::InteropServices;

namespace OgreUnified {

	public ref class EditorOptionsForm : public System::Windows::Forms::Form
	{
	public:
		EditorOptionsForm(void);
		
	protected:
		~EditorOptionsForm();
		
	private:
		System::Windows::Forms::TabControl^					mTabControl;
		System::Windows::Forms::TabPage^					mTabPageRenderSystem;
		System::Windows::Forms::ComboBox^					mComboBox;
		System::Windows::Forms::Label^						mLabel;
		System::Windows::Forms::DataGridView^				mDataGridView;
		System::Windows::Forms::Button^						mButtonSave;
		System::Windows::Forms::Button^						mButtonCancel;
		System::Windows::Forms::DataGridViewTextBoxColumn^  mOptionName;
		System::Windows::Forms::DataGridViewComboBoxColumn^ mOptionValue;
		RenderSystemList* mRsList;
		System::ComponentModel::Container ^		components;
		
		void InitializeComponent(void);
		System::Void mButtonSave_Click(System::Object^  sender, System::EventArgs^  e);
		System::Void mButtonCancel_Click(System::Object^  sender, System::EventArgs^  e);
		void updateDatagrid();
		System::Void mComboBox_SelectionChangeCommitted(System::Object^  sender, System::EventArgs^  e);
};
}
